%demo9
X=rand(5,20);

Data=mat2cell(X,ones(1,size(X,1)),size(X,2));

JP=joyPlot(Data,'ColorMode','Qt','Sep',1,'MedLine','on','QtLine','on','Quantiles');
JP=JP.draw();

legendHdl=JP.getLegendHdl();
legend(legendHdl)
